package com.kis.model.user;


import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    private Integer userId;

    private String address;

    private String cid;

    private String city;

    private String password;

    private String province;

    private Integer sex;

    private String tel;

    private String userName;

    private String userPhotourl;

    private String wxid;

    private String familyHistory;

    private String birthday;

    private String userToken;

    private Integer source;

    private Date createDate;

    private Integer existStatus;

    private String parentName;

    private Integer emrNo;

    private Integer visionSource;

    private String mpOpenId;

    private Integer realNameStatus;

    private String nation;

    private String nickname;

    private Date updateDate;

    private String occupation;

    /**
     * 承载数据
     *
     * @return
     */
    private String relation;
    private Integer usedCount;//使用多少次
    private Integer userSurplusCount=0;//剩余次数

    public Integer getUsedCount() {
        return usedCount;
    }

    public void setUsedCount(Integer usedCount) {
        this.usedCount = usedCount;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid == null ? null : cid.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPhotourl() {
        return userPhotourl;
    }

    public void setUserPhotourl(String userPhotourl) {
        this.userPhotourl = userPhotourl == null ? null : userPhotourl.trim();
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid == null ? null : wxid.trim();
    }

    public String getFamilyHistory() {
        return familyHistory;
    }

    public void setFamilyHistory(String familyHistory) {
        this.familyHistory = familyHistory == null ? null : familyHistory.trim();
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday == null ? null : birthday.trim();
    }

    public String getUserToken() {
        return userToken;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken == null ? null : userToken.trim();
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getExistStatus() {
        return existStatus;
    }

    public void setExistStatus(Integer existStatus) {
        this.existStatus = existStatus;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName == null ? null : parentName.trim();
    }

    public Integer getEmrNo() {
        return emrNo;
    }

    public void setEmrNo(Integer emrNo) {
        this.emrNo = emrNo;
    }

    public Integer getVisionSource() {
        return visionSource;
    }

    public void setVisionSource(Integer visionSource) {
        this.visionSource = visionSource;
    }

    public String getMpOpenId() {
        return mpOpenId;
    }

    public void setMpOpenId(String mpOpenId) {
        this.mpOpenId = mpOpenId == null ? null : mpOpenId.trim();
    }

    public Integer getRealNameStatus() {
        return realNameStatus;
    }

    public void setRealNameStatus(Integer realNameStatus) {
        this.realNameStatus = realNameStatus;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation == null ? null : nation.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public Integer getUserSurplusCount() {
        return userSurplusCount;
    }

    public void setUserSurplusCount(Integer userSurplusCount) {
        this.userSurplusCount = userSurplusCount;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", address='" + address + '\'' +
                ", cid='" + cid + '\'' +
                ", city='" + city + '\'' +
                ", password='" + password + '\'' +
                ", province='" + province + '\'' +
                ", sex=" + sex +
                ", tel='" + tel + '\'' +
                ", userName='" + userName + '\'' +
                ", userPhotourl='" + userPhotourl + '\'' +
                ", wxid='" + wxid + '\'' +
                ", familyHistory='" + familyHistory + '\'' +
                ", birthday='" + birthday + '\'' +
                ", userToken='" + userToken + '\'' +
                ", source=" + source +
                ", createDate=" + createDate +
                ", existStatus=" + existStatus +
                ", parentName='" + parentName + '\'' +
                ", emrNo=" + emrNo +
                ", visionSource=" + visionSource +
                ", mpOpenId='" + mpOpenId + '\'' +
                ", realNameStatus=" + realNameStatus +
                ", nation='" + nation + '\'' +
                ", nickname='" + nickname + '\'' +
                ", updateDate=" + updateDate +
                ", occupation='" + occupation + '\'' +
                ", relation='" + relation + '\'' +
                ", usedCount=" + usedCount +
                ", userSurplusCount=" + userSurplusCount +
                '}';
    }
}
